package com.ilink.ilinkcommon.domain.PO.studyservice;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
    @Data
    @TableName("tb_screen")
    public class TeacherScreen implements Serializable {
        @TableField("course_id")
        private Long courseId;

        @TableField("teacher_id")
        private String teacherId;

        @TableField("chapter_id")
        private Long chapterId;

        @TableField("file_id")
        private Long fileId;

        @TableId(value = "coursesource_id", type = IdType.INPUT)
        private Long coursesourceId;

        @TableField("study_duration")
        private Integer studyDuration;

        @TableField("study_num")
        private Integer studyNum;

        @TableField("student_num")
        private Integer studentNum;

        @TableField("time")
        @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd" , timezone = "GMT+8")
        private Date time;

        @TableField("study_duration_history")
        private Integer studyDurationHistory;

        @TableField("student_num_history")
        private Integer studentNumHistory;
    }

